<?php
namespace app\admin\logic;
use think\facade\Request;
use think\facade\View;

class VipLogic
{
    public static function getWhere()
    {
        $value=Request::param();
        View::assign('value',$value);
        $where=[];
        $keywords=Request::post('keywords','');
        View::assign('keywords',$keywords);
        if (!empty($keywords)){
            $where[] = ['uname','like',"%$keywords%"];
        }
        return $where;
    }
}